<template>
    <div id="main" v-wechat-title="$route.meta.title">
        <h1>当前安装的组件/依赖</h1>
        <el-card>
            具体依赖前往package.json查看
        </el-card>
        <h3>更新时间:2023/4/22</h3>
        <h4>引入vite3打包</h4>
        <h4>
            升级vue-monoplasty-slide-verify至1.2.0
        </h4>
        <h3>更新时间:2022/11/4</h3>
        <h4>引入vuex@3.6.2</h4>
        <h4>
            升级vue-monoplasty-slide-verify至1.2.0
        </h4>
        <h3>更新时间:2022/8/23</h3>
        <h3>更新时间:2022/5/5</h3>
        <h4>简易封装axios</h4>
    </div>
</template>

<script>
import api from '../request/api';
export default {
    data() {
        return {
            // 防止重复点击
            clickTimer: '',
        };
    },
    created() { },
    methods: {
        getdata() {
            var now = +new Date();
            var timer = this.clickTimer;
            if (now - timer < 5000) {
                console.log('节流');
                return;
            }
            api.getdata().then((res) => {
                return;
                this.$message.success(res.data.text.text);
                this.clickTimer = now;
            });
        },
    },
};
</script>


<style scoped>
#main {
    padding: 0;
    margin: 0;
    text-align: center;
}
</style>